import * as client from './client'
import urlConfig from './urlConfig'
/**
 * 请求参数
 */
export class SmsRst {
    public mobile: number;
    public type: number;
}
/**
 * 返回数据
 */
export class SmsRpn {
   
    public isSuccess: number;
    public code: string;
    public description: string;
    public resData: boolean
}
/**
 * 获取数据
 * @param rst 参数
 */
export async function exec(rst: SmsRst) {
    const data = await client.exec(urlConfig.sms, rst);
    return JSON.parse(data) as client.RSM<SmsRpn>;
}

